            <table width="100%" border=0>
                    <tr>
                        <td width="75%">
                            <div id="territory_map" class="minh">
                            </div>
                        </td>
                        <td width="25%">
                            <div id="territory_info" class="minh">
                                <div class="depcostpanel">
                                    <table class="territoryCostTable">
                                        <thead class="stats">
                                            <tr>
                                                <th>
                                                    Resource
                                                </th>
                                                <th>
                                                    Cost
                                                </th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td>
                                                  <img src='images/civresources/foodthumb.png'>
                                                  <br></br>  Food 
                                                </td>
                                                <td id="tcost0">
                                                    -
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td id="tdcost0">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                <img src='images/civresources/waterthumb.png'> <br></br>
                                                    Water
                                                </td>
                                                <td id="tcost1">
                                                  -
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td id="tdcost1">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                <img src='images/civresources/oilthumb.png'>
                                                    <br></br>Oil
                                                </td>
                                                <td id="tcost2">
                                                    -
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td id="tdcost2">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                <img src='images/civresources/woodthumb.png'><br></br>
                                                    Wood
                                                </td>
                                                <td id="tcost3">
                                                    -
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td id="tdcost3">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                <img src='images/civresources/silverthumb.png'>  <br></br>
                                                    Silver
                                                </td>
                                                <td id="tcost4">
                                                    -
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td id="tdcost4">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                
                                                <img src='images/civresources/goldthumb.png'><br></br>
                                                    Gold
                                                </td>
                                                <td id="tcost5">
                                                    -
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    &nbsp;
                                                </td>
                                                <td id="tdcost5">
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table border="0" width="100%">
                                        <tr>
                                            <td>
                                                <span class="genbutton" id="addloc">Add Location</span>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                                <div class="depResult" style="border:2; display: none;">
                                    <img src="images/loading.gif"  alt="Loading.Please wait.." />
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
                
                 <script type="text/javascript" >
                 
              
                    initializeMap();
                    
                    $(function() {
                    
       $(".territoryCostTable tr").mouseover(function() {
		$(this).addClass("statsover");
	}).mouseout(function() {
		$(this).removeClass("statsover");
	});
	$(".territoryCostTable tr:even").addClass("statsalt");
	$('#addloc').button();
		$('#addloc').bind('click',function(event) {
						if (!oktobuildbase)
							return;
						{

						}
						$.getJSON("maps/addlocations.html",
							{
							lat : newlat,
							lon : newlon,
							terdistance:terdistance
							},
							function(rtnmsg) {
								if (null == rtnmsg) {
                                jalert("Unable to contact server! Please reconnect! Any changes you make will be lost",2)
                                return;
                                }
								//FIXME check the return code 
								jalert("You have successfully added the new location");
								showLocations(map.getCenter(), map.getBounds(), map);
							});

					});
					
		
                   });
        </script>
        
             